<?php
/**
 *
 * @author Rodrigo Régis Palmeira <regisbsb@gmail.com>
 *
 */
namespace Foxforms\Widget\Field;
class TextArea extends \Foxforms\Widget\Field
{
	protected $cols;
	protected $rows;
	protected $text;
	protected $rich;

	public static function create($name)
	{
		return new self($name);
	}

	public function setCols($cols)
	{
		$this->cols = $cols;
		return $this;
	}

	public function setRows($rows)
	{
		$this->rows = $rows;
		return $this;
	}

	public function setText($text)
	{
		$this->text = $text;
		return $this;
	}

	public function rich($bool = true)
	{
		$this->rich = $bool;
		return $this;
	}

	public function setValue($value)
	{
		return $this->setText($value);
	}

	public function getValue()
	{
		return $this->text;
	}
}